package com.example.demo.Controller;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data   //提供 get set toString 等方法
@Component
@ConfigurationProperties(prefix = "student")//读取配置文件中的对象
public class Student {
    private int id;
    private String name;
    private int age;
}
